'''
序列解包，对多个变量复制
    左边是变量、元组、列表，右边也可以是任意一类，是否需要数量对等，待验证
解包字典
    默认是对【键】进行操作
    如果需要对键值操作，需要使用items()
    如果需要对【值】进行操作，需要使用values()
'''
x, y, z = 10, 20, 30
# (a, b, c) = (8, 9, 10)
# [m, n, p] = [10, 20, 30]
(a, b, c) = [10, 20, 30]
[m, n, p] = (8, 9, 10)
print(x)
print(y)
print(z)
print(a)
print(b)
print(c)
print(m)
print(n)
print(p)
print('----------------------------------')
s = {'name': 'jinqiu', 'age': 28, 'job': 'programmer'}
my_name, my_age, my_job = s
print(my_name)  # name
my_name, my_age, my_job = s.items()  # ('name', 'jinqiu')
print(my_name)
my_name, my_age, my_job = s.values()
print(my_name)  # jinqiu
